<admintpl file="header" />
</head>

<body>
<div class="wrap js-check-wrap">
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('Message/Index')}">留言墙</a></li>
            <li class="active"><a href="{:U('Message/addwall')}">创建留言墙</a></li>
            <!--<li><a href="{:U('Message/manage')}">留言管理</a></li>-->
            <!--<li><a href="{:U('Message/addmessage')}">创建留言</a></li>-->
        </ul>

        <form method="post" class="form-horizontal js-ajax-form" action="{:U('Admin/Message/editwall')}">
            <div class="control-group">
                <div>
                    <table class="table table-hover table-bordered table-list">
                        <tr id="set_colname" >
                            <td style="width: 200px;">*名称</td>
                            <td>
                                <input type="text" name="wall_name" value="{$info.title}" style="width: 500px;">
                            </td>
                        </tr>

                        <tr id="set_weight">
                            <td style="width: 200px;">状态</td>
                            <td>
                                <select class="select_2" name="status" id="status" style="width: 105px;">
                                    <option value="">--请选择--</option>
                                    <option value="0" <if condition="$info.status eq 0 "> selected</if>>未开始</option>
                                    <option value="1" <if condition="$info.status eq 1 "> selected</if>>已开始</option>
                                    <option value="2" <if condition="$info.status eq 2 "> selected</if>>已结束</option>
                                </select>
                            </td>
                        </tr>
                        <tr id="set_viewcount" >
                            <td style="width: 200px;">设置观众数量</td>
                            <td>
                                <input type="text" name="set_view_count" value="{$info.set_view_count}" placeholder="0"><span style="color: darkgrey">&nbsp;&nbsp;&nbsp;&nbsp;当数量设置为0时则前端页面不显示</span>
                            </td>
                        </tr>
                        <tr id="set_mescount" >
                            <td style="width: 200px;">设置留言数量</td>
                            <td>
                                <input type="text" name="set_mes_count" value="{$info.set_mes_count}" placeholder="0"><span style="color: darkgrey">&nbsp;&nbsp;&nbsp;&nbsp;当数量设置为0时则前端页面不显示</span>
                            </td>
                        </tr><tr id="set_radio" >
                        <td style="width: 200px;">广播</td>
                        <td>
                            <textarea rows="3" cols="20" name="set_radio">{$info.radio}</textarea>
                        </td>
                    </tr>
                    </table>
                </div>
                <input type="hidden" name="wall_id" value="{$info.id}">
                <input type="hidden" name="wall_edit" value="1">
            </div>
            <div class="form-actions" style="padding-left:260px;">
                <button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
                &nbsp;&nbsp;<a class="btn" href="{:U('Admin/Message/Index')}">{:L('BACK')}</a>
            </div>
        </form>
    </div>

</div>
<script src="__PUBLIC__/js/common.js"></script>

<script>


</script>

</body>
</html>